<template>
  <div class="caseAnalysis1">
    <div class="caseAnalysis1_top">案件词频分析</div>
    <div class="caseAnalysis1_buttom">
      <div class="caseAnalysis1_buttomleft">
          <ul class="caseAnalysis1_buttom1">
            <li v-for="(item,i) in caseAnalysis1_buttom2Arr" :key="i" 
            :class="isButtom1Itemactive==item.name?'caseAnalysis1_buttom1Item buttom1Itemactive':'caseAnalysis1_buttom1Item'"
            @click="changeButtom1Item(item.name)"
            >{{item.name}}</li>
        </ul>
        <ul class="caseAnalysis1_buttom2">
            <li v-for="(item,i) in caseAnalysis1_buttom1Arr" :key="i" class="buttom2Item">
              <div class="itemNum">{{item.num}}件</div>
              <div class="itemType">{{item.type}}</div>
            </li>
        </ul>
      </div>
      <div class="caseAnalysis1_buttomri"></div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      caseAnalysis1_buttom1Arr: [
        {
          num: "345",
          type: "乱搭乱建"
        },
        {
          num: "345",
          type: "焚烧垃圾"
        },
        {
          num: "345",
          type: "水域秩序问题"
        },
        {
          num: "345",
          type: "废弃家具设备"
        },
        {
          num: "345",
          type: "油烟污染"
        },
        {
          num: "345",
          type: "道路破损"
        },
        {
          num: "345",
          type: "非装饰性树胶"
        },
        {
          num: "345",
          type: "暴露垃圾"
        },
        {
          num: "345",
          type: "道路不洁"
        },
        {
          num: "345",
          type: "垃圾渣土"
        }
      ],
      caseAnalysis1_buttom2Arr: [
        {
          name: "本周"
        },
        {
          name: "本月"
        },
        {
          name: "本年"
        }
      ],
      isButtom1Itemactive: "本周"
    };
  },
  methods: {
    changeButtom1Item(val) {
      this.isButtom1Itemactive = val;
    }
  }
};
</script>

<style lang="scss" scoped>
ul {
  list-style: none;
}
.caseAnalysis1 {
  margin-top: 20px;
  color: #fff;
  width: 600px;padding-top: 20px;
  background: url("../../assets/dapin/2/xian.png") #0E1525 no-repeat;
  .caseAnalysis1_top {
  }
  .caseAnalysis1_buttom {
    justify-content: space-between;
    display: flex;
   width: 600px;
    .caseAnalysis1_buttomleft {
      width: 65%;
      .caseAnalysis1_buttom1 {
        padding-left: 0;
        display: flex;
        .caseAnalysis1_buttom1Item {
          cursor: pointer;
        }
        .caseAnalysis1_buttom1Item:nth-child(2) {
          border-left: 1px solid #ccc;
          border-right: 1px solid #ccc;
          padding: 0 10px;
          margin: 0 10px;
        }
        .buttom1Itemactive {
          color: #237b80;
        }
      }
      .caseAnalysis1_buttom2 {
        padding-left: 0;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        .buttom2Item {
          border-left: 1px solid #6e7379;
          padding-left: 5px;
          box-sizing: border-box;
          width: 24%;
          margin-right: 1%;
          margin-bottom: 10px;
          .buttom2Item:nth-child(4n) {
            margin-right: 0;
          }
          .itemType {
            font-size: 12px;
            color: #828C98;
          }
        }
      }
    }
  }
}
</style>